package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.FollowSetTask.FollowSetRequest;
import com.smiier.skin.net.FollowSetTask.FollowSetResponse;
import com.smiier.skin.util.GlobalSettings;

/**
 * 关注、取消关注
 * 
 * @author 杨文华
 * 
 */
public class FollowSetTask extends NetTask<FollowSetRequest, FollowSetResponse> {

	public static class FollowSetRequest extends ORequest {

		public ArrayList<Long> qids;
		public ArrayList<Long> uids;
		public String method = GlobalSettings.FOLLOW_METHOD_ADD;
		public String token;
		public String appname = Constant.APP_NAME;
	}

	public static class FollowSetResponse extends OResponse {
		public ArrayList<Long> Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Follow.Set";
		mRequestMethod = METHOD_GET;
	}

}
